#ifndef STR_H
#define STR_H
typedef struct _str
{
  char *v;
  int c,n; /* c- capacity, n- size, v- values */
  bool init;

  //_str()
  //{
  //  init = false;
  //}

} str_t;

const str_t DEFAULT_STR = 
{
  0,0,0,0
};

void str_create( str_t *s, int cap = 10 );

void str_free( str_t *s );

void str_catc( str_t *s, char c );

void str_clear( str_t *s );

void str_cpy( str_t* dst, str_t* src );

void str_cpy( str_t* dst, char *src );

bool is_blank( str_t *s );

void str_cats( str_t *s, char *str );

#endif
